# MakeFile du projet SudokuJ
# Romain Huet
# Nicolas Raynaud
# 4INFO Groupe 1.2

# Variables
CC = g++
JAVAC = javac
CFLAGS = -O3
JAVA = /usr/java/jdk1.5.0_02/


# Lancer le jeu
all: compile play

compile: core ihm

play:
	@java -cp . sudoku.Main &

core:
	@$(CC) $(CFLAGS) -I$(JAVA)include/ -I$(JAVA)include/linux/ -c *.cpp
	@$(CC) $(CFLAGS) -o libcore.so -shared -I/usr/java/jdk1.5.0_02/include/ -I/usr/java/jdk1.5.0_02/include/linux/ *.o

ihm:
	@$(JAVAC) */*.java

clean:
	@rm -f *.o libcore.so */*/*.class
